package com.example.demo.task;

import org.springframework.stereotype.Component;

@Component("abcTask")
public class ABCTask {

    public void learnEnglish(String words){
        System.out.println("学习英语：" + words);
    }

    public void learMath(String words){
        System.out.println("学习数学：" + words);
    }
}
